home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / hacky_sack_jr.swf / scripts / DefineButton2_297 / BUTTONCONDACTION on(keyPress 8).as < prev    next >
Text File  |  2011-08-19  |  804b  |  34 lines

  1. on(keyPress "8"){
  2.    if("0" < eval("/:super") and eval("/:specialwait") == "0" and "280" < getProperty("/ball", _Y) and getProperty("/ball", _Y) < "390")
  3.    {
  4.       set("/:char","2");
  5.       set("/:k","8");
  6.       tellTarget("/bot")
  7.       {
  8.          gotoAndStop("8");
  9.          play();
  10.       }
  11.       setProperty("/hit", _X, - "100");
  12.       set("/:move","0");
  13.       tellTarget("/bg")
  14.       {
  15.          gotoAndStop("special2");
  16.          play();
  17.       }
  18.       set("/:super",eval("/:super") - "1");
  19.    }
  20.    else if(eval("/:specialwait") == "0")
  21.    {
  22.       set("/:char","2");
  23.       tellTarget("/bot")
  24.       {
  25.          gotoAndStop("2");
  26.          play();
  27.       }
  28.       set("/:move","0");
  29.       set("/:k","2");
  30.       setProperty("/hit", _X, - "100");
  31.       set("/:move","0");
  32.    }
  33. }
  34.